'''
Created on 2012-7-26

@author: root
'''
import os
#获取当前模块所在到目录
print(os.getcwd())
#当前用户到home目录
print(os.path.expanduser('~'))
current = os.getcwd()
(dirname,file) = os.path.split(current)
print(dirname)
print(file)